package com.ruoyi.business.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.HurtDoctorMessageMapper;
import com.ruoyi.business.domain.HurtDoctorMessage;
import com.ruoyi.business.service.IHurtDoctorMessageService;

/**
 * 医师信息Service业务层处理
 *
 * @author ruoyi
 * @date 2024-04-17
 */
@Service
public class HurtDoctorMessageServiceImpl implements IHurtDoctorMessageService
{
    @Autowired
    private HurtDoctorMessageMapper hurtDoctorMessageMapper;

    /**
     * 查询医师信息
     *
     * @param id 医师信息主键
     * @return 医师信息
     */
    @Override
    public HurtDoctorMessage selectHurtDoctorMessageById(Long id)
    {
        return hurtDoctorMessageMapper.selectHurtDoctorMessageById(id);
    }

    /**
     * 查询医师信息列表
     *
     * @param hurtDoctorMessage 医师信息
     * @return 医师信息
     */
    @Override
    public List<HurtDoctorMessage> selectHurtDoctorMessageList(HurtDoctorMessage hurtDoctorMessage)
    {
        return hurtDoctorMessageMapper.selectHurtDoctorMessageList(hurtDoctorMessage);
    }

    /**
     * 新增医师信息
     *
     * @param hurtDoctorMessage 医师信息
     * @return 结果
     */
    @Override
    public int insertHurtDoctorMessage(HurtDoctorMessage hurtDoctorMessage)
    {
        return hurtDoctorMessageMapper.insertHurtDoctorMessage(hurtDoctorMessage);
    }

    /**
     * 修改医师信息
     *
     * @param hurtDoctorMessage 医师信息
     * @return 结果
     */
    @Override
    public int updateHurtDoctorMessage(HurtDoctorMessage hurtDoctorMessage)
    {
        return hurtDoctorMessageMapper.updateHurtDoctorMessage(hurtDoctorMessage);
    }

    /**
     * 批量删除医师信息
     *
     * @param ids 需要删除的医师信息主键
     * @return 结果
     */
    @Override
    public int deleteHurtDoctorMessageByIds(Long[] ids)
    {
        return hurtDoctorMessageMapper.deleteHurtDoctorMessageByIds(ids);
    }

    /**
     * 删除医师信息信息
     *
     * @param id 医师信息主键
     * @return 结果
     */
    @Override
    public int deleteHurtDoctorMessageById(Long id)
    {
        return hurtDoctorMessageMapper.deleteHurtDoctorMessageById(id);
    }

    @Override
    public List<Map<String, Object>> getDoctorList(String doctorName) {
        return hurtDoctorMessageMapper.getDoctorList(doctorName);
    }

    @Override
    public Map<String, Object> getDoctorDetail(Long doctorId) {
        return hurtDoctorMessageMapper.getDoctorDetail(doctorId);
    }

    @Override
    public int updateDoctorMessage(HurtDoctorMessage hurtDoctorMessage) {
        return hurtDoctorMessageMapper.updateDoctorMessage(hurtDoctorMessage);
    }
}
